package com.xy.cli.command.children;

import cn.hutool.core.io.FileUtil;
import picocli.CommandLine;

import java.io.File;
import java.util.List;
@CommandLine.Command(name = "list", description = "列出所有文件", mixinStandardHelpOptions = true)
public class ListCommand implements Runnable {
@Override
public void run() {
    String inputPath ="D:\\project\\xy-generator\\xy-generate-demo-project\\acm-template";
List<File> fileList = FileUtil.loopFiles(inputPath);
    for (File file : fileList) {
    System.out.println(file);
    }
    }
    }
